package com.derbtec.refale.activities;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

import com.derbtec.refale.R;

public class ErrorActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_error);
        String message = getIntent().getExtras().getString("error");
        TextView errortv = (TextView)findViewById(R.id.errortv);
        errortv.setText(message);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_error, menu);
        return true;
    }
}
